package com.rs.dao;

import com.rs.entities.UploadPicture;

public class UploadDao extends BaseDao {

	public String savaThiefPic(UploadPicture uploadPicture, String path) {
		String result = "";
		try {
			insert(uploadPicture, path);
			result = path;
		} catch (Exception e) {
			e.printStackTrace();
		}
		return result;
	}

	private void insert(UploadPicture uploadPicture, String path) {
		getSession().save(uploadPicture);
	}

}
